import math
import turtle
import matplotlib.pylab as pylab # 支持2D 和3D
import matplotlib.pylab as pylab # 支持2D 和3D
import numpy

yuan=(4**3)# 4的三次方
#radisString=input("Enter the radius of your circle:")# 2.x  raw_input()
#\ 续行
# math.fabs() 绝对值

#
# turtle.forward(100)
# turtle.right(144)
# turtle.forward(100)
# turtle.right(144)
# turtle.forward(100)
# turtle.right(144)
# turtle.forward(100)
# turtle.right(144)
# turtle.forward(100)
# turtle.right(144)
print(yuan)
i=0
while i<5:
    print(i)
    i+=1
#完全数  丰沛数  冰雹序列
aInt,bInt,cInt=15,10,17
# for continue break
listOfInts=[]
for counter in range(10):
    listOfInts.append(counter*2)
# print(listOfInts)
#
# print(len(listOfInts))
#
# pylab.plot(listOfInts)
# pylab.show()

# y_values=[]
# x_values=[]
# num=0.0
#
# while num<math.pi*4:
#     y_values.append(math.sin(num))
#     x_values.append(num)
#     num+=0.1
# pylab.plot(x_values,y_values,'ro')
# pylab.show()


number=1
total=0;
intarr=[]
while number<64:
    if number<=2:
       intarr.append(number)
       total=1
    else:
       total+=2**number
       intarr.append(2**number)
    number+=1

print(total)
  #三重引号的字符串 具有特殊的属性 保留所有字符串的格式信息


helloString='''Hello World'''
print(helloString[6:11])
print(helloString[-1])
print(helloString[:5])
print(helloString[0:5])
print(helloString[3:-2])

print(helloString[::2])## HloWrd
"""dwfdssdfsdsdfasdfasdfasdfasdfadfsdfsd注释"""
vowels='aeiofeu'
# in 操作符
print('a'in vowels.lower().strip())
var =vowels.find('f')# 位置
print(var)
# 回文 ？？ 字符串向后读取和向前读取都得到相同的内容
#
# 海龟绘图

#---- 阵列----
myArray=numpy.arange(0,6.3,0.1)
print(myArray)
newArray=myArray*2
print(newArray)

# scope 作用域









